package com.br.fsm.projectdelivery.controlador;

import android.content.Context;

import com.br.fsm.projectdelivery.repositorio.RepositorioBasico;

public class ControladorBasico implements IControladorBasico {
	
	private static ControladorBasico instance;
	protected static Context context;
	
	protected ControladorBasico(){
		super();
	}
	
	public static ControladorBasico getInstance(){
		if ( instance == null ){
			return new ControladorBasico();
		}else{
			return instance;
		}
	}

	public void setContext( Context ctx ) {
		context = ctx;
		RepositorioBasico.setContext(ctx);
	}
}
